package com.baidu.travel.timedtask.demo;


import com.baidu.travel.timedtask.service.CommentTimingService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;

public class Demo01 {

    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.forEach(l->{
            if (l==2){
                return;
            }
            System.out.println(l);
        });
    }
}
